<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>card5</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    .wrapper{
      position: relative;
      overflow: hidden;
      width: 480px;
      height: 240px;
      margin: 100px auto;
      border-radius: 5px;
      background-color: #008E6B;
      box-shadow: 0 1.4px 1.7px rgba(0, 0, 0, 0.017),
                  0 3.3px 4px rgba(0, 0, 0, 0.024), 
                  0 6.3px 7.5px rgba(0, 0, 0, 0.03), 
                  0 11.2px 13.4px rgba(0, 0, 0, 0.036), 
                  0 20.9px 25.1px rgba(0, 0, 0, 0.043), 
                  0 50px 60px rgba(0, 0, 0, 0.06);
    }
    .wrapper img{
      width: 100%;
      height: 100%;
    }
    .wrapper p{
      position:absolute;
      top: 50%;
      width: 100%;
      color: transparent;
      text-align: center;
    }
    p:nth-child(2){
      transform: translate(0, -50%);
      font-size: 23px;
      font-weight: bold;
    }
    P:nth-child(3){
      transform: translate(0, calc(40px - 50%));
    }
    .topper{
      position:absolute;
      top: 50%;
      left: 50%;
      width: 440px;
      height: 200px;
      box-sizing: border-box;
      transform: translate(-50%, -50%);
      border: 1px solid transparent;
    }
    .wrapper:hover p{
      color: #fff;
    }
    .wrapper:hover .topper{
      width: 380px;
      height: 140px;
      border: 1px solid #fff;
    }
    .wrapper:hover img{
      opacity: 0.8;
    }
    .wrapper,p,img,.topper{
      transition: all .4s;
    }
  </style>
</head>
<body>
  <div class="wrapper">
    <img src="5.jpg" alt="" />
    <p>Blue Ridge</p>
    <p>MOUNTAINS</p>
    <div class="topper"></div>
  </div>
</body>
</html>